package com.zhuss.advice.db.dao.ext;

import com.zhuss.advice.db.dao.gen.ProposalMapper;
import com.zhuss.advice.db.entity.Proposal;
import com.zhuss.bean.bo.advice.proposal.SearchProposalBo;
import com.zhuss.bean.vo.advice.proposal.DetailProposalVo;
import com.zhuss.bean.vo.advice.proposal.ListProposalVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: zhushanshuo
 * @Date: 2020/3/6 8:33
 */
@Mapper
public interface ProposalDao extends ProposalMapper{
    void create(Proposal record);

    void delete(Proposal record);

    List<ListProposalVo> list(SearchProposalBo bo);

    Integer countList(SearchProposalBo bo);

    DetailProposalVo detail(@Param("proposalId") Long proposalId);
}
